package com.yuanqiworld.vw.domain;

import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.json.RooJson;
import org.springframework.roo.addon.tostring.RooToString;

import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.validation.constraints.NotNull;

@RooJavaBean
@RooToString
@RooJson
@RooJpaActiveRecord(table = "vw_device")
public class Device {

    @NotNull
    @Column(unique = true)
    private String deviceCode;

    private String deviceName;

    private String deviceType;

    private String modelName;

    private String elementGroup;

    private String devicePosition;

    // 智能设备.也就是可以发送控制指令的设备，或者/并且可以接收设备传过来的信息.
    private boolean smartDevice;

    @Embedded
    private Transform transform;


}
